package com.j180.springboot_2.dao.impl;

import com.j180.springboot_2.bean.Person;
import com.j180.springboot_2.dao.IPersonDao;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

@Repository
public class PersonDaoImpl implements IPersonDao {
    @Override
    public List<Person> getAll() {

        List<Person> list = new ArrayList<>();

        list.add(new Person(1,"小张"));
        list.add(new Person(2,"李菊花"));

        return list;
    }
}
